<template>
<div>
    <el-form class="viewForm" label-width="80px">
        <el-col :span="12">
            <el-form-item label="姓名">
                <div v-html="viewModel.name">></div>
            </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="电话">
                <div v-html="viewModel.phone">></div>
            </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="客户经理">
                <div v-html="viewModel.managerName">></div>
            </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="详细地址">
                <div v-html="viewModel.address">></div>
            </el-form-item>
        </el-col>
        <el-col :span="12">
            <el-form-item label="备注">
                <div v-html="viewModel.note">></div>
            </el-form-item>
        </el-col>
    </el-form>
</div>
</template>

<script>
  import common from "@/mixins/common.js";

  export default {
    mixins: [common],
    data() {
      return {
        viewModel: {},
        activeIndex: "1",
      };
    },
    mounted() {
      var id = this.$route.query.id;
      var self = this;
      var data = {};
      data.id = id;

      var url = self.$CONFIG.REMOTE_URL + "/rest/customer/view.htm";
      console.info(url);
      this.$HTTP.form(url, data).then((res) => {
        if (res.code == 0) {
          self.viewModel = res;
        }
      });
    },
  };
</script>

<style>
</style>